package cn.young.javalearning.designpattern.factorypattern.f_simplefactory;

import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Apple;

public class Main {
    public static void main(String[] args) {
        Apple apple = new SimpleFruitFactory().generateApple(Apple.class);
        apple.setColor("red");
        apple.setSize("big");
        System.out.println("fruit = [" + apple + "]");
    }
}
